/*
 * Sound.cpp
 *
 *  Created on: 2011-02-20
 *      Author: Basse
 */


#include "Sound.h"
#include <iostream>
using namespace std;

Sound::Sound(const char*path) {
	this->path = path;

	sound = 0;
	loaded = 0;
}

Sound::~Sound() {
}

int Sound::load() {

	sound = Mix_LoadWAV(path);

	if(sound == 0)
	{
		cout << "Error while loading file " << path << endl;
		return 0;
	}
	else
	{
		cout << "Loaded file " << path << endl;
		loaded = 1;
	}

	return 1;
}
